/* 用户管理页面样式 */
.users-management-container {
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.users-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.users-header h2 {
    color: #333;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.users-header h2 i {
    margin-right: 10px;
    color: #1a5fb4;
}

.users-header p {
    color: #666;
    font-size: 14px;
}

/* 工具栏样式 */
.users-toolbar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.search-box {
    position: relative;
    width: 300px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.search-box input {
    width: 100%;
    padding: 8px 12px 8px 35px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.toolbar-actions {
    display: flex;
    gap: 10px;
}

.toolbar-actions .btn i {
    margin-right: 5px;
}

/* 筛选条件样式 */
.users-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    white-space: nowrap;
    color: #666;
}

.filter-group select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* 用户表格样式 */
.users-table-container {
    overflow-x: auto;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.users-table th,
.users-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.users-table th {
    background-color: #f5f5f5;
    font-weight: 500;
    color: #444;
    white-space: nowrap;
}

.users-table tr:hover {
    background-color: #f9f9f9;
}

.users-table input[type="checkbox"] {
    cursor: pointer;
}

/* 角色标签样式 */
.role-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.role-tag.admin {
    background-color: #f0f7ff;
    color: #1a5fb4;
    border: 1px solid #d0e3ff;
}

.role-tag.editor {
    background-color: #fff0f0;
    color: #d63939;
    border: 1px solid #ffd0d0;
}

.role-tag.reviewer {
    background-color: #fff8e6;
    color: #d68a00;
    border: 1px solid #ffe8b3;
}

.role-tag.user {
    background-color: #f0f0f0;
    color: #666;
    border: 1px solid #ddd;
}

/* 状态徽章样式 */
.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.active {
    background-color: #e6f7e6;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.status-badge.inactive {
    background-color: #fff3e0;
    color: #d68a00;
    border: 1px solid #ffe0b2;
}

.status-badge.locked {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* 操作按钮样式 */
.btn-action {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
}

.btn-action:hover {
    background-color: #f0f0f0;
}

.btn-action.edit:hover {
    color: #1a5fb4;
}

.btn-action.reset:hover {
    color: #d68a00;
}

.btn-action.delete:hover {
    color: #c62828;
}

/* 表格底部样式 */
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.batch-actions {
    display: flex;
    gap: 10px;
}

.batch-actions select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination .total {
    color: #666;
    font-size: 13px;
    margin-right: 10px;
}

.pagination .page-size {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-right: 10px;
}

.btn-page {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-page:hover {
    background-color: #f5f5f5;
}

.btn-page:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.current-page {
    padding: 0 10px;
    font-weight: 500;
}

/* 模态框样式 */
.user-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #fff;
    border-radius: 5px;
    width: 600px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: all 0.3s;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
}

.required {
    color: #c62828;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

@media (max-width: 768px) {
    .users-toolbar {
        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }

    .users-filter {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-group {
        width: 100%;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .table-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

.btn-primary {
    background-color: #1a5fb4;
    color: white;
}

.btn {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
}